import type { RouteItem } from '@/api/model/permissionModel';
import { request } from '@/utils/request';

const Api = {
  MenuList: '/auth/menu',
  PermissionList: '/auth/permissions',
};

export function getMenuList() {
  return request.get<Array<RouteItem>>({
    url: Api.MenuList,
  });
}

// 获取权限
export function getPermission() {
  return request.get({
    url: Api.PermissionList,
  });
}
